package com.eunion.web.cms.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.eunion.core.LogUtil;
import com.eunion.core.common.DeleteVo;
import com.eunion.core.common.JsonVo;
import com.eunion.web.cms.entity.ExpertOrder;
import com.eunion.web.cms.service.ExpertOrderService;
import com.eunion.web.common.base.BaseService;
import com.eunion.web.common.base.BaseTableCommonController;
import com.eunion.web.common.vo.Web;

@Controller
@RequestMapping("/api/expertorder")
@PreAuthorize("hasAuthority('volunteer:expertorder')")
public class ExpertOrderResource extends BaseTableCommonController<ExpertOrder,Long>{

	@Autowired
	private ExpertOrderService service;
	@Override
	protected BaseService<ExpertOrder, Long> getBaseService() {
		// TODO Auto-generated method stub
		return service;
	}


    /**
     * 进入专家信息界面
     * @return
     */
    @RequestMapping("/index")
    public String index() {
        return getUrlBase();
    }

    @Override
    protected String getUrlBase() {
        return "admin/expert/expertorder";
    }
}
